package com.wzh.project.log;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;


public class LogTest {
	private static final Logger logger = LogManager.getLogger(LogTest.class);
	public static void main(String[] args) throws InterruptedException {
		//Logger logger = LogManager.getLogger();
		while (true) {
			logger.trace("trace level=================");
			logger.debug("debug level=================");
			logger.info("info level=================");
			logger.warn("warn level=================");
			logger.error("error level=================");
			logger.fatal("fatal level=================");
			Thread.sleep(1000);
		}
	}

}
